package cn.ad.server.web.spring.model.bes;

import java.util.HashMap;
import java.util.Map;

public enum AdslotType{
	
	adt1(0,1, "固定"),
	adt2(1,0, "悬浮"),
	adt3(8,0, "图+ICON"),
	adt4(11,2, "插屏"),
	adt5(12,3, "开屏"),
	adt6(13,5, "原生"),
	adt7(21,0,"视频前贴片"),
	adt8(22,0,"视频中贴片"),
	adt9(23,0,"视频后贴片"),
	adt10(26,0,"视频暂停");
	
	public static final Map<Integer, AdslotType> typeMap;

    static {
    	typeMap = new HashMap<>();
        for (AdslotType type : values()) {
        	typeMap.put(type.getValue(), type);
        }
    }
	
	
	private int value;
	private int adformatVal;
	private String name;
	
	AdslotType(int value,int adformatVal, String name) {
		this.value = value;
		this.adformatVal = adformatVal;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getAdformatVal() {
		return adformatVal;
	}

	public void setAdformatVal(int adformatVal) {
		this.adformatVal = adformatVal;
	}

	public void setName(String name) {
		this.name = name;
	}
	

	
}
